Rails.application.routes.draw do
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  root 'static_pages#home'
  resources :users, only: [:new, :create]
  resources :articles
  resources :uploads, only: [:create]
  resources :article_snapshots, only: [:show, :update]

  get 'signup' => 'users#new'
  get 'login' => 'session#new'
  post 'login' => 'session#create'
  delete 'logout' => 'session#destroy'
  get 'home' => 'static_pages#home'
end
